﻿<controls:ChildWindow x:Class="SLWebApp.ChildWindows.ChildWindow_FlightVessels"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="700" Title="新增" FontFamily="Comic Sans MS" FontSize="12">
    <toolkit:BusyIndicator x:Name="progressbar" IsBusy="False" >
        <Grid x:Name="LayoutRoot" Margin="2">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <StackPanel>
                <Border BorderThickness="1" Height="30" BorderBrush="#b4b4b4" CornerRadius="1" >
                    <Border.Background>
                        <ImageBrush ImageSource="/SLWebApp;component/img/operate_box_bg.png" />
                    </Border.Background>
                    <StackPanel  Orientation="Horizontal" HorizontalAlignment="Left" >
                        <TextBlock Text="操作：" Padding="10,6" Height="30" Width="50"/>
                        <Image Width="16" Height="16" Source="/SLWebApp;component/img/icon_save.png"></Image>
                        <TextBlock x:Name="btnSave" Padding="3,6" Cursor="Hand"  MouseLeftButtonDown="btnSave_MouseLeftButtonDown">保存</TextBlock>
                    </StackPanel>
                </Border>

                <Border BorderThickness="0" Height="5" >
                </Border>

                <Border BorderThickness="1" BorderBrush="#b4b4b4" CornerRadius="1" >

                    <Grid>
                        <Grid.RowDefinitions >
                            <RowDefinition Height="30" />
                            <RowDefinition Height="30" />
                            <RowDefinition Height="30" />
                            <RowDefinition Height="30" />
                        </Grid.RowDefinitions >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="Auto" />
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition  Width="110" />
                            <ColumnDefinition Width="110"/>
                            <ColumnDefinition Width="110" />
                            <ColumnDefinition Width="110"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" >航线：</TextBlock>
                        <ComboBox x:Name="cbmSL_first" Grid.Row="0" Grid.Column="1" Height="22"  SelectionChanged="cmbFirstTer_SelectionChanged">
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <!--<TextBlock Text="{Binding Path=ID}" Width="40" />-->
                                        <!--航线代码-->
                                        <TextBlock Text="{Binding Path=RouteName}" Width="Auto" />
                                        <!--航线名称-->
                                    </StackPanel>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Right" >服务航线：</TextBlock>
                        <ComboBox  x:Name="cmbSL_second" Grid.Row="0" SelectionChanged="cmbSL_second_SelectionChanged"  Grid.Column="3" Height="22">
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <!--<TextBlock Text="{Binding Path=ID}" Width="60" />-->
                                        <!--航线代码-->
                                        <TextBlock Text="{Binding Path=RouteName}" Width="Auto" />
                                        <!--航线名称-->
                                        <TextBlock Text="{Binding Path=ChildRouteName}" Width="Auto" />
                                    </StackPanel>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="0" Grid.Column="4" HorizontalAlignment="Right" >班期：</TextBlock>
                        <ComboBox  x:Name="comboxVesselDate"  Grid.Row="0" Grid.Column="5" Height="22">
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Path=RouteName}" Width="Auto" />
                                    </StackPanel>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" >船舶英文名：</TextBlock>
                        <ComboBox  Grid.Row="1" x:Name="cmbEngName" SelectionChanged="cmbEngName_SelectionChanged" Grid.Column="1" Height="22">
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="{Binding Path=VSL_ENNAME}" Width="Auto"/>
                                    </StackPanel>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="1" Grid.Column="2" HorizontalAlignment="Right" >船舶中文名：</TextBlock>
                        <TextBox  Grid.Row="1" Height="22" Grid.Column="3" x:Name="txtBoxCNName"/>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="1" Grid.Column="4" HorizontalAlignment="Right" >进口航次步长：</TextBlock>
                        <TextBox Grid.Row="1" Grid.Column="5" Height="22" x:Name="txtLNR_ISTEP"></TextBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Right" >出口航次步长：</TextBlock>
                        <TextBox Grid.Row="2" Grid.Column="1" Height="22" x:Name="txtLNR_ESTEP"></TextBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="2" Grid.Column="2" HorizontalAlignment="Right" >进口航次（初始）：</TextBlock>
                        <TextBox Grid.Row="2" Grid.Column="3" Height="22" x:Name="txtLNR_IVOYAGE"></TextBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="2" Grid.Column="4" HorizontalAlignment="Right" >出口航次（初始）：</TextBlock>
                        <TextBox Grid.Row="2" Grid.Column="5" Height="22" x:Name="txtLNR_EVOYAGE"></TextBox>


                        <TextBlock Padding="3,3" Height="22" Grid.Row="3" Grid.Column="0" HorizontalAlignment="Right" >出口箱量：</TextBlock>
                        <TextBox Grid.Row="3" Grid.Column="1" Height="22" x:Name="txtLNR_IAMOUNT"></TextBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="3" Grid.Column="2" HorizontalAlignment="Right" >进口箱量：</TextBlock>
                        <TextBox Grid.Row="3" Grid.Column="3" Height="22" x:Name="txtLNR_EAMOUNT"></TextBox>

                    </Grid>
                </Border>
            </StackPanel>

        </Grid>
    </toolkit:BusyIndicator>
</controls:ChildWindow>
